package com.hcandtx.Bms.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcandtx.Bms.bean.Log;
import com.hcandtx.Bms.mapper.LogMapper;
import com.hcandtx.Bms.service.ILogService;

@Service
public class LogServiceImpl implements ILogService {

	@Autowired
	LogMapper logmapper;
	
	@Override
	public List<Log> findAll() {
		
		return logmapper.findAll();
	}

	@Override
	public int addlog(Log log) {
		// TODO Auto-generated method stub
		return logmapper.addlog(log);
	}

	@Override
	public Log check(String loginName) {
		// TODO Auto-generated method stub
		return logmapper.check(loginName);
	}

	@Override
	public int addNumber(Log log) {
		// TODO Auto-generated method stub
		return logmapper.addNumber(log);
	}

	@Override
	public int deleteById(int id) {
		// TODO Auto-generated method stub
		return logmapper.deleteById(id);
	}

	

}
